/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/9/11 20:25
 * @Copyright
 */
package AbstractClass5;
//测试类
public class Test {
    public static void main(String[] args) {
        int licensePlateNumber = 246;//假设车牌号为123
        if (licensePlateNumber % 2 == 0) { //如果车牌号为双数
            Sedan sedan = new Sedan("阿俞的轿车", "奔驰", "沪A12345", "蓝", 5);
            sedan.displayIno();
        } else { //如果车牌号为单数
            Bus bus = new Bus("阿俞的巴士", "大众", "沪A23246", "黄", 60);
            bus.displayInfo();
            bus.driveRoute();
        }
    }
}

